<div class="orderlist">
	<div class="orderheader">
		<div style="float: left;margin: 0px 50px 0px 0px">
			Bid Purchase:<span>#<?php echo $data->id?></span>						
		</div>
		<div style="float: left;margin: 0px 25px">
			<?php echo date("m-d-Y H:i:s T", $data->created);?>(Paid Date)	
		</div>
		<div style="float: right;margin: 0px 25px;">
			<a style="color:#005580;margin-left:50px;" href="<?php echo $this->createUrl('pdetail',array('id'=>$data->id));?>">View Detail</a>	
		</div>
		<div style="clear: both;"></div>
	</div>
	<div>
		<table width="100%" style="margin-bottom: 20px;">
			<tbody>
				<tr style="background-color: rgb(235, 235, 235); background-position: initial initial; background-repeat: initial initial;">
					<td width="280" align="center">Product</td>
					<td align="center">Status</td>
					<td align="center">Price</td>
					<td align="center">Qty</td>
					<td align="center">Sub Total</td>
				</tr>
				<?php 
					// $bidTypeModel = new BidType();
					// $bidType = $bidTypeModel->showBidType(2);
					$bidType=2;
					$amount = $data->amount;
					$pamount = $data->promo_bids;
				?>
				<tr>
					<td align="center"><?php echo $data->note;?><?php echo $pamount>0?" Plus ".$pamount." ".$bidType:''; ?></td>	
					<td align="center">Success</td>
					<td align="center">$<?php echo $data->value?></td>
					<td align="center">1</td>
					<td align="center">$<?php echo $data->value?></td>
				</tr>
			</tbody>
		</table>
	</div>
	<div style="width: 100%">					 			
		<div style="text-align:right;float:right;margin-right:20px;">
			<p>Total : $<?php echo $data->value;?></p>
		</div>
	</div>
	<div style="clear: both;"></div>
</div>